import csv

def getregisterdata():
    stream=open(r"D:\PycharmProjects\ecShop\autoTest\driver\registerData.csv", 'r',encoding='utf-8')
    data=csv.reader(stream)
    list = []
    i = 0
    for row in data:
        if i != 0:
            list.append(row)
        i = i + 1
    return list

def getlogindata():
    stream=open(r"D:\PycharmProjects\ecShop\autoTest\driver\loginData.csv", 'r',encoding='utf-8')
    data=csv.reader(stream)
    list = []
    i = 0
    for row in data:
        if i != 0:
            list.append(row)
        i = i + 1
    return list

def getsearch1data1():
    stream=open(r"D:\PycharmProjects\ecShop\autoTest\driver\search1Data.csv", 'r',encoding='utf-8')
    data=csv.reader(stream)
    list = []
    i = 0
    for row in data:
        if i != 0:
            list.append(row)
        i = i + 1
    return list

# def getsearch1data2():
#     stream=open(r"D:\PycharmProjects\ecShop\autoTest\driver\search1Data.csv", 'r',encoding='utf-8')
#     data=csv.reader(stream)
#     row_d = [4]
#     list = []
#
#     for i,row in enumerate(data,start=1):
#         if i in row_d:
#             list.append(row)
#
#     return list

def getaddspct1data1():
    stream=open(r"D:\PycharmProjects\ecShop\autoTest\driver\addspct1Data.csv", 'r',encoding='utf-8')
    data=csv.reader(stream)
    list = []
    i = 0
    for row in data:
        if i != 0:
            list.append(row)
        i = i + 1
    return list

def getcommentsdata():
    stream=open(r"D:\PycharmProjects\ecShop\autoTest\driver\commentsData.csv", 'r',encoding='utf-8')
    data=csv.reader(stream)
    list = []
    i = 0
    for row in data:
        if i != 0:
            list.append(row)
        i = i + 1
    return list






